<template>
  <div>
    <personTop headline="我的收藏"></personTop>
    <homeBar
      @goParticulars="$router.push({
      path:`/particulars?id=${item.id}`
  })"
      v-for="(item,index) of collectList"
      :newsList="item"
      :key="index"
    ></homeBar>
  </div>
</template>

<script>
import personTop from "../../components/personTop";
import homeBar from "../../components/homeBar";
export default {
  data() {
    return {
      collectList: []
    };
  },
  components: {
    personTop,
    homeBar
  },
  mounted() {
    this.$axios({
      method: "get",
      url: "/user_star"
    }).then(res => {
      const { data } = res.data;
      this.collectList = data;
    });
  }
};
</script>

<style>
</style>